package com.accesshollywood.xmas2011.core;

import static playn.core.PlayN.pointer;

import org.jbox2d.common.Settings;

import com.accesshollywood.xmas2011.core.Master.MyPointerListener;

import playn.core.Game;
import playn.core.Pointer;

public class Xmas2011 implements Game {
	Master	master;

	@Override
	public void init() {
		Settings.maxPolygonVertices = 32;
		master = new Master();
		pointer().setListener(master.new MyPointerListener());
	}

	@Override
	public void paint(float alpha) {
		master.paint();
	}

	@Override
	public void update(float delta) {
		master.update();
	}

	@Override
	public int updateRate() {
		return 60;
	}
}
